package com.code;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动器
 *
 * @EnableCaching 开启缓存
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/2/9
 *
 */
@EnableAsync  //开启异步注解功能
@EnableScheduling //开启基于注解的定时任务
@EnableCaching  //开启缓存
//@EnableRabbit  //开启基于注解的RabbitMQ模式
@MapperScan(value = "com.code.mapper")
@SpringBootApplication
public class ApplicationStart {
    public static void main(String[] args) {
        SpringApplication.run(ApplicationStart.class, args);
    }
}

